package com.gs.cd.api;

/**
 * Created by hippo  2020/2/20
 *
 * @Description
 */
public enum ApiResultType {

    /**
     * 成功
     */
    SUCCESS(0, "操作成功"),
    /**
     * 错误
     */
    ERROR(500, "操作错误"),
    /**
     * 未认证
     */
    NOT_ACCEPTABLE(406, "未认证"),
    /**
     * 未授权
     */
    UNAUTHORIZED(401, "未授权");

    ApiResultType(int value, String des) {
        this.value = value;
        this.des = des;
    }

    private final int value;
    private final String des;


    public String getDes() {
        return des;
    }

    public int getValue() {
        return value;
    }

}
